﻿using System.Web;
using Ninject.Modules;
using Nydus.Model;
using Nydus.Model.Interfaces;
using Nydus.WebForms.FrontendModel;

namespace Nydus.WebForms.Frontend.NinjectModules
{
    public class NydusNinjectModule : NinjectModule
    {
        public override void Load()
        {
            Bind<IPresenterFactory>().To<NinjectPresenterFactory>();
            Bind<INydusDataContext>().To<NydusEntities>();
            Bind<HttpContextBase>().ToMethod(t => new HttpContextWrapper(HttpContext.Current));
        }
    }
}